<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>结算支付 | BRUTAL TOYS 粗野主义潮玩</title>
    <style>
        /* 基础重置与粗野主义风格变量 */
        :root {
            --concrete: #7D7D7D;
            --concrete-light: #9E9E9E;
            --concrete-dark: #616161;
            --accent: #FF5252;
            --accent-dark: #E53935;
            --text: #212121;
            --text-light: #757575;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f5f5;
            color: var(--text);
            line-height: 1.6;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23f5f5f5'/%3E%3Cpath d='M0 0v100M20 0v100M40 0v100M60 0v100M80 0v100M100 0v100M0 0h100M0 20h100M0 40h100M0 60h100M0 80h100M0 100h100' stroke='%23e0e0e0' stroke-width='1' fill='none'/%3E%3C/svg%3E");
        }

        .concrete-bg {
            background-color: var(--concrete);
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            color: white;
            border: 2px solid var(--concrete-dark);
            box-shadow: 8px 8px 0 var(--concrete-dark);
        }

        /* 布局组件 */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 0;
            margin-bottom: 20px;
        }

        .logo {
            font-size: 2.5rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -2px;
            color: var(--text);
        }

        .logo span {
            color: var(--accent);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav li {
            margin-left: 30px;
        }

        nav a {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 1.1rem;
            position: relative;
            padding: 5px 0;
        }

        nav a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background-color: var(--accent);
            transition: width 0.3s;
        }

        nav a:hover:after {
            width: 100%;
        }

        /* 结算流程 */
        .checkout-header {
            margin-bottom: 40px;
        }

        .checkout-title {
            font-size: 2.5rem;
            text-transform: uppercase;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .checkout-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100px;
            height: 5px;
            background-color: var(--accent);
        }

        .checkout-steps {
            display: flex;
            justify-content: space-between;
            max-width: 600px;
            margin-bottom: 40px;
            position: relative;
        }

        .checkout-steps:before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--concrete-light);
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: 3px solid var(--concrete-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .step.active .step-number {
            background: var(--accent);
            border-color: var(--accent-dark);
            color: white;
        }

        .step.completed .step-number {
            background: var(--concrete);
            border-color: var(--concrete-dark);
            color: white;
        }

        .step-label {
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* 结算布局 */
        .checkout-container {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 40px;
            margin-bottom: 60px;
        }

        /* 表单样式 */
        .form-section {
            background: white;
            padding: 30px;
            border: 2px solid var(--text);
            box-shadow: 8px 8px 0 var(--concrete-light);
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
            text-transform: uppercase;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .form-input {
            width: 100%;
            padding: 15px;
            border: 2px solid var(--text);
            font-size: 1rem;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            margin-top: 20px;
        }

        .checkbox-group input {
            margin-right: 10px;
        }

        /* 支付方式 */
        .payment-methods {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .payment-method {
            border: 2px solid var(--text);
            padding: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payment-method:hover {
            border-color: var(--accent);
        }

        .payment-method.selected {
            border-color: var(--accent);
            background: rgba(255, 82, 82, 0.1);
        }

        .payment-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .payment-name {
            font-weight: 600;
        }

        /* 订单摘要 */
        .order-summary {
            background: white;
            padding: 25px;
            border: 2px solid var(--text);
            box-shadow: 8px 8px 0 var(--concrete-light);
            position: sticky;
            top: 20px;
        }

        .order-items {
            margin-bottom: 20px;
        }

        .order-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .item-name {
            font-weight: 600;
        }

        .item-quantity {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .item-price {
            font-weight: 700;
        }

        .summary-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .summary-label {
            color: var(--text-light);
        }

        .summary-value {
            font-weight: 600;
        }

        .summary-total {
            display: flex;
            justify-content: space-between;
            margin: 20px 0;
            padding-top: 15px;
            border-top: 2px solid #eee;
            font-size: 1.3rem;
        }

        .total-label {
            font-weight: 700;
        }

        .total-value {
            font-weight: 900;
            color: var(--accent);
        }

        /* 按钮样式 */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 15px 30px;
            background-color: var(--accent);
            color: white;
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid var(--accent-dark);
            box-shadow: 5px 5px 0 var(--accent-dark);
            font-size: 1.1rem;
        }

        .btn:hover {
            transform: translate(3px, 3px);
            box-shadow: 2px 2px 0 var(--accent-dark);
        }

        .btn-outline {
            background: transparent;
            color: var(--text);
            border: 2px solid var(--text);
            box-shadow: 5px 5px 0 var(--concrete-light);
        }

        .btn-outline:hover {
            background: var(--text);
            color: white;
            box-shadow: 2px 2px 0 var(--concrete-light);
        }

        .btn-full {
            display: block;
            width: 100%;
            text-align: center;
            padding: 18px;
        }

        .btn-back {
            margin-right: 15px;
        }

        .action-buttons {
            display: flex;
            margin-top: 30px;
        }

        /* 页脚 */
        footer {
            padding: 60px 0;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
        }

        .footer-links a {
            margin: 0 15px;
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
        }

        .social-icons {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background-color: var(--text);
            color: white;
            margin: 0 10px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
        }

        .social-icons a:hover {
            transform: translateY(-5px);
            background-color: var(--accent);
        }

        .copyright {
            color: var(--text-light);
        }

        /* 响应式设计 */
        @media (max-width: 900px) {
            .checkout-container {
                grid-template-columns: 1fr;
            }

            .checkout-steps {
                max-width: 100%;
            }

            .step-label {
                font-size: 0.8rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .payment-methods {
                grid-template-columns: repeat(2, 1fr);
            }

            nav ul {
                flex-wrap: wrap;
            }

            nav li {
                margin: 0 15px 10px 0;
            }
        }

        @media (max-width: 600px) {
            header {
                flex-direction: column;
                text-align: center;
            }

            .logo {
                margin-bottom: 20px;
            }

            nav ul {
                justify-content: center;
            }

            .checkout-steps {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }

            .checkout-steps:before {
                display: none;
            }

            .step {
                flex-direction: row;
            }

            .step-number {
                margin-right: 15px;
                margin-bottom: 0;
            }

            .checkout-title {
                font-size: 2rem;
            }

            .payment-methods {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                flex-direction: column;
            }

            .btn-back {
                margin-right: 0;
                margin-bottom: 15px;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <header>
            <div class="logo">BRUTAL<span>TOYS</span></div>
            <nav>
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="product_list_2.html">产品</a></li>
                    <li><a href="artists.html">艺术家</a></li>
                    <li><a href="news.html">新闻</a></li>
                    <li><a href="help.html">帮助中心</a></li>
                    <li><a href="about.html">关于</a></li>
                    <li><a href="contact.html">联系</a></li>
                    <li><a href="cart.html">购物车(3)</a></li>
                </ul>
            </nav>
        </header>

        <div class="checkout-header">
            <h1 class="checkout-title">结算支付</h1>

            <div class="checkout-steps">
                <div class="step completed">
                    <div class="step-number">1</div>
                    <div class="step-label">购物车</div>
                </div>
                <div class="step active">
                    <div class="step-number">2</div>
                    <div class="step-label">配送信息</div>
                </div>
                <div class="step">
                    <div class="step-number">3</div>
                    <div class="step-label">支付方式</div>
                </div>
                <div class="step">
                    <div class="step-number">4</div>
                    <div class="step-label">完成订单</div>
                </div>
            </div>
        </div>

        <div class="checkout-container">
            <div class="checkout-form">
                <div class="form-section">
                    <h2 class="section-title">配送地址</h2>

                    <div class="form-row">
                        <div class="form-group">
                            <label class="form-label">姓氏</label>
                            <input type="text" class="form-input" required>
                        </div>
                        <div class="form-group">
                            <label class="form-label">名字</label>
                            <input type="text" class="form-input" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">电子邮件</label>
                        <input type="email" class="form-input" required>
                    </div>

                    <div class="form-group">
                        <label class="form-label">手机号码</label>
                        <input type="tel" class="form-input" required>
                    </div>

                    <div class="form-group">
                        <label class="form-label">详细地址</label>
                        <input type="text" class="form-input" placeholder="街道地址" required>
                    </div>

                    <div class="form-row">
                        <div class="form-group">
                            <label class="form-label">城市</label>
                            <input type="text" class="form-input" required>
                        </div>
                        <div class="form-group">
                            <label class="form-label">邮政编码</label>
                            <input type="text" class="form-input" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">国家/地区</label>
                        <select class="form-input" required>
                            <option value="">请选择</option>
                            <option value="china">中国</option>
                            <option value="hongkong">中国香港</option>
                            <option value="macau">中国澳门</option>
                            <option value="taiwan">中国台湾</option>
                        </select>
                    </div>

                    <div class="checkbox-group">
                        <input type="checkbox" id="save-address">
                        <label for="save-address">保存配送信息以便下次使用</label>
                    </div>
                </div>

                <div class="form-section">
                    <h2 class="section-title">配送方式</h2>

                    <div class="form-group">
                        <div class="checkbox-group">
                            <input type="radio" id="standard-shipping" name="shipping" checked>
                            <label for="standard-shipping">
                                <strong>标准配送</strong> - ¥50 (5-7个工作日)
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="checkbox-group">
                            <input type="radio" id="express-shipping" name="shipping">
                            <label for="express-shipping">
                                <strong>快递配送</strong> - ¥100 (2-3个工作日)
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="checkbox-group">
                            <input type="radio" id="priority-shipping" name="shipping">
                            <label for="priority-shipping">
                                <strong>优先配送</strong> - ¥200 (1-2个工作日)
                            </label>
                        </div>
                    </div>
                </div>

                <div class="action-buttons">
                    <a href="cart.html" class="btn btn-outline btn-back">返回购物车</a>
                    <button class="btn" id="continue-to-payment">继续到支付</button>
                </div>
            </div>

            <div class="order-summary">
                <h2 class="section-title">订单摘要</h2>

                <div class="order-items">
                    <div class="order-item">
                        <div>
                            <div class="item-name">混凝土巨人 #07</div>
                            <div class="item-quantity">数量: 1</div>
                        </div>
                        <div class="item-price">¥899</div>
                    </div>

                    <div class="order-item">
                        <div>
                            <div class="item-name">几何兽 - 灰烬</div>
                            <div class="item-quantity">数量: 1</div>
                        </div>
                        <div class="item-price">¥759</div>
                    </div>

                    <div class="order-item">
                        <div>
                            <div class="item-name">未完成系列 #02</div>
                            <div class="item-quantity">数量: 1</div>
                        </div>
                        <div class="item-price">¥699</div>
                    </div>
                </div>

                <div class="summary-line">
                    <span class="summary-label">小计</span>
                    <span class="summary-value">¥2,357</span>
                </div>

                <div class="summary-line">
                    <span class="summary-label">运费</span>
                    <span class="summary-value">¥50</span>
                </div>

                <div class="summary-line">
                    <span class="summary-label">税费</span>
                    <span class="summary-value">¥235.70</span>
                </div>

                <div class="summary-total">
                    <span class="total-label">总计</span>
                    <span class="total-value">¥2,642.70</span>
                </div>

                <div class="promo-code" style="margin: 20px 0;">
                    <div class="form-group">
                        <label class="form-label">优惠码</label>
                        <div style="display: flex;">
                            <input type="text" class="form-input" placeholder="输入优惠码" style="border-right: none;">
                            <button
                                style="padding: 0 15px; background: var(--text); color: white; border: 2px solid var(--text); cursor: pointer;">应用</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer>
        <div class="container">
            <div class="footer-links">
                <a href="#">隐私政策</a>
                <a href="#">条款条件</a>
                <a href="#">购买指南</a>
                <a href="#">配送信息</a>
            </div>
            <div class="social-icons">
                <a href="#">IG</a>
                <a href="#">TW</a>
                <a href="#">FB</a>
                <a href="#">YT</a>
            </div>
            <p class="copyright">© 2023 BRUTAL TOYS. 保留所有权利。</p>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', function () {
            // 继续到支付按钮
            const continueBtn = document.getElementById('continue-to-payment');

            continueBtn.addEventListener('click', function () {
                // 这里可以添加表单验证
                // 如果验证通过，跳转到支付页面或显示支付部分
                alert('配送信息已保存，继续到支付步骤');

                // 更新步骤指示器
                document.querySelectorAll('.step')[1].classList.remove('active');
                document.querySelectorAll('.step')[1].classList.add('completed');
                document.querySelectorAll('.step')[2].classList.add('active');

                // 这里可以显示支付表单部分
                // 实际应用中应该跳转到下一步或显示下一步的表单
            });

            // 配送方式选择
            const shippingOptions = document.querySelectorAll('input[name="shipping"]');
            const shippingCost = document.querySelector('.summary-line:nth-child(2) .summary-value');

            shippingOptions.forEach(option => {
                option.addEventListener('change', function () {
                    if (this.id === 'standard-shipping') {
                        shippingCost.textContent = '¥50';
                        updateTotal(50);
                    } else if (this.id === 'express-shipping') {
                        shippingCost.textContent = '¥100';
                        updateTotal(100);
                    } else if (this.id === 'priority-shipping') {
                        shippingCost.textContent = '¥200';
                        updateTotal(200);
                    }
                });
            });

            // 更新总价
            function updateTotal(shippingCost) {
                const subtotal = 2357;
                const tax = 235.70;
                const total = subtotal + shippingCost + tax;

                document.querySelector('.total-value').textContent = `¥${total.toFixed(2)}`;
            }

            // 优惠码应用
            const applyPromoBtn = document.querySelector('.promo-code button');

            applyPromoBtn.addEventListener('click', function () {
                const promoInput = document.querySelector('.promo-code input');
                if (promoInput.value.trim() !== '') {
                    alert(`优惠码 "${promoInput.value}" 已应用`);
                    promoInput.value = '';

                    // 这里可以添加实际优惠计算逻辑
                } else {
                    alert('请输入优惠码');
                }
            });
        });
    </script>
</body>

</html>